package com.softer.chengxin.district.service;

import com.softer.chengxin.common.domin.CommonResult;
import com.softer.chengxin.district.entity.District;
import com.softer.chengxin.district.entity.DistrictStreet;

import java.util.List;

/**
 * @author zcz
 * @date 2018/12/20
 */
public interface DistrictService {
        /**
         * 查询列表,填充下拉框
         * @param parentId
         * @return
         */
    List<District> getDistrictByParentId(String parentId);
    /**
     * 查询地区树
     * @return
     */
    List<DistrictStreet> getDistrictStreet();

    /**
     * 新增
     * @param district
     * @return
     */
    CommonResult add(District district);

    /**
     * 修改
     * @param district
     * @return
     */
    CommonResult update(District district);
    /**
     * 删除
     * @param id
     * @return
     */
    CommonResult delete(String id);

    /**
     * 根具id 查詢區域信息，填充修改框
     * @param id
     * @return
     */
    District getDistrictById(String id);

}
